<div class="wrapper-md" ng-controller="warehouse">
    <toaster-container toaster-options="{'position-class': 'toast-top-center', 'close-button':true}"></toaster-container>
    <div ng-if="warehouseList" class="panel panel-default">
        <div class="panel-heading">
            {{title.title}}
            <!--<button style="float: right;margin-top: -5px;margin-left: 15px;" class="btn m-b-xs btn-sm btn-info btn-addon">-->
            <!--<i class="fa fa-trash-o"></i>删除-->
            <!--</button>-->
            <button ng-click="warehouseJump()"  style="float: right;margin-top: -5px;" class="btn m-b-xs btn-sm btn-primary btn-addon">
                <i class="fa fa-plus"></i>新建
            </button>
        </div>
        <div class="panel-body b-b b-light">
            搜索: <input id="filter" type="text" class="form-control input-sm w-sm inline m-r"/>
        </div>
        <div>
            <table class="table m-b-none" ui-jq="footable" data-filter="#filter" data-page-size="10">
                <thead>
                <tr>
                    <th>{{columns[0].title}}</th>
                    <th>{{columns[1].title}}</th>
                    <th>{{columns[2].title}}</th>
                    <th>{{columns[3].title}}</th>
                    <th>{{columns[4].title}}</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="tb in saveDate">
                    <td>{{tb.warehouseNumber}}</td>
                    <td><a href ng-click="showInfo(tb)">{{tb.warehouseCkmc}}</a></td>
                    <td>{{tb.warehouseType}}</td>
                    <td>{{tb.createTime}}</td>
                    <td data-value="1"><span class="{{tb.status1}}" title="Active">{{tb.status}}</span></td>
                </tr>
                </tbody>
                <tfoot class="hide-if-no-paging">
                <tr>
                    <td colspan="5" class="text-center">
                        <ul class="pagination"></ul>
                    </td>
                </tr>
                </tfoot>
            </table>


        </div>
    </div>
    <div ng-if="warehouseAdd" class="panel panel-default">
        <div class="panel-heading">
            <u style="cursor:pointer"  ng-click="warehouseJump()">{{title.title}}</u> / {{title.addTitle}}
            <button ng-click="saveWarehouse('sm')" style="float: right;margin-top: -5px;margin-left: 5px;" class="btn m-b-xs btn-sm btn-primary btn-addon">
                <i class="fa fa-plus"></i>保存
            </button>
            <button ng-click="warehouseJump()" style="float: right;margin-top: -5px;margin-left: 5px;" class="btn m-b-xs btn-sm btn-default btn-addon">
                <i class="fa fa-hand-o-left"></i>返回
            </button>
        </div>
        <div class="panel-body">
            <h3 style="text-align: center"><b>仓库信息表</b></h3>
            <form class="form-horizontal" method="get">

                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-1"><span style="color:red">*</span>制&nbsp;&nbsp;单&nbsp;&nbsp;人</label>
                    <div class="col-sm-3">
                        <input readonly type="text" class="form-control" id="zdr" value="{{warhouseRow.zdr}}">
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-1"><span style="color:red">*</span>制单日期</label>
                    <div class="col-sm-3">
                        <input readonly type="text" class="form-control" ng-required="true" id="createTime" value="{{warhouseRow.createTime}}"/>
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-2">仓库编码</label>
                    <div class="col-sm-3">
                        <input readonly type="text" class="form-control" id="warehouseNumber" value="{{warhouseRow.warehouseNumber}}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-1"><span style="color:red">*</span>仓库名称</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="warehouseCkmc" value="{{warhouseRow.warehouseCkmc}}">
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-4"><span style="color:red">*</span>仓库类型</label>
                    <div class="col-sm-3">
                        <select  class="form-control" ng-model="mylabel" ng-options="v for v in lists" id="warehouseType"></select>
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-3"><span style="color:red">*</span>仓库位置</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="warehouseCkwz" value="{{warhouseRow.warehouseCkwz}}">
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-1">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
                    <div class="col-sm-11">
                        <textarea type="text" class="form-control" id="warehouseBz" value="{{warhouseRow.warehouseBz}}">{{warhouseRow.warehouseBz}}</textarea>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-1">是否启用</label>
                    <label class="i-switch m-t-xs m-r">
                        <input type="checkbox" ng-checked="{{warhouseRow.qy}}" id="qy">
                        <i></i>
                    </label>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
            </form>
        </div>
    </div>
</div>
<script type="text/ng-template" id="myModalContent.html">
    <div ng-include="'tpl/modal.html'"></div>
</script>
<script type="text/ng-template" id="selectDept.html">
    <div ng-include="'tpl/selectDept.html'"></div>
</script>